package com.hysf.ioc.pro5_ioc_import;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.Arrays;

public class AppConfig_2_Test {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig_2.class);
		
		Arrays.stream(context.getBeanDefinitionNames()).forEach(System.out::println);
	}
}
